Skip to main content

numberOfColumns

Type

property

Summary

Set up and get the number of columns displayed in the PolyList

Syntax

set the numberOfColumns of widget to {<integer>}
get the numberOfColumns of widget

Description

Use the numberOfColumns property to set and get the number of columns displayed in the PolyList. The default value of this property is 1.

If the columnWidth property is equal to 0, the PolyList divides the width by the number of columns to find the width that each column will have. While columnWidth has a value greater than 0, all columns will have the specified width.

Examples

on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight
if pNewWidth < 600 then
set the numberOfColumns of widget "PolyList" to 1
else if pNewWidth < 800 then
set the numberOfColumns of widget "PolyList" to 2
else
set the numberOfColumns of widget "PolyList" to 3
end if
end resizeStack